<html>
<head>
    <meta property="qc:admins" content="41717017156361142516375" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <LINK href="assets/css/css.css" type="text/css" rel="stylesheet">

    <title>香蕉快车系统登录</title>
    <script src="assets/js/jquery-1.11.3.min.js"></script>
    <script src="assets/js/base.js"></script>

</head>
<body style="background:#FFF">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td height="50%" align="center" valign="bottom" style="padding-bottom:10px; font-size:32px;">
        <div style=" background:url(assets/img/logo300.jpg) 0 0 no-repeat; background-size:40%; line-height:50px;width:270px; padding:0 0 0 155px;font-family:'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Arial,SimSun,sans-serif;">香蕉快车来了</div></td></tr>
    <tr>
        <td align="center" valign="middle" style=" height:150px; background:#f3f3f3; text-align:center; border-top-width:thin; border-top-style:solid; border-color:#CCC; border-bottom:1px solid #CCC">
            <table id="mtb" border="0" cellspacing="0" cellpadding="0" style="width:350px; display:none;margin-left:10px;">
                <tr height="40"><td style="font-size:16px">账号：<input id="username" need="请您输入账号！" maxlength=50 type="text" class="txt0" style="width:220px; height:30px; font-size:18px;"></td></tr>
                <tr height="40"><td style="font-size:16px">密码：<input id="pwd" need="请您输入密码！" maxlength=20 type="password" class="txt0" style="width:220px; height:30px; font-size:18px;">
                    <input value="登录" onClick="send()" type="submit"  class="btn0" onMouseOver="this.className='btn1';" onMouseOut="this.className='btn0';" style="width:50px; height:28px; position:relative; top:-1px;font-size:14px" class="btn0" />
                </td></tr>
            </table>
        </td></tr>
    <tr><td height="40" style="text-align:center; line-height:20px; padding-top:10px; font-size:12px; color:#666;font-family:'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Arial,SimSun,sans-serif;">建议使用谷歌Chrome浏览器<br>Copyright &copy; 2018 banner.com All Right Reserved. </td></tr>
    <tr><td>&nbsp;</td></tr>
</table>
<script>

    function disTable(){
        var mtable=document.getElementById("mtb");
        var l=screen.width/2-320/2;
        mtable.style.marginLeft=l+"px";
        mtable.style.display="";

        document.getElementById('username').focus();
    }
    disTable();

    function send()
    {
        var username=$("#username").val();
        var pwd=$("#pwd").val();
        $.ajax({
            url: appUrl+"user/login?username="+username+"&pwd="+pwd,
            type: "get",
           // data: form.serialize(),
            dataType: "json",
            beforeSend: function ()
            {
                $("#ajax-loader").show();
            },
            error: function ()
            {

            },
            complete:function () {

            },
            success: function (data)
            {
                if(data.flag=="success"){
                    localStorage.user={userName:username};
                    location.href="main.shtml";

                    //window.location.href='goods.html';
                }else{
                   // $.Notification.autoHideNotify('warning', 'top center', '用户名或者密码错误！', '请重试')
                }
            }
        });

    }

</script>
</body>
</html>